package com.college.heyuhua.service;

import com.college.heyuhua.model.shop.Category;
import com.college.heyuhua.model.shop.Item;
import com.college.heyuhua.model.shop.Orderinfo;
import com.college.heyuhua.model.shop.Take_delivery_of_goods;

import java.util.List;

/**
 * Created by 赵东坡 on 2019/2/6.
 * Time:12:53
 * 宇宙无敌赵牛逼，祈求永无bug
 */
public interface IShopService {

    public List<Item> getItemList();

    public List<Category> getCategoryList();

    List<Item> getItemListByCid(Integer cid);

    boolean addcart(Integer id,int fck,long uid);

    List<Item> getCart(long uid);

    boolean updates(String iid,String counts);

    boolean deletes(String iid);

    boolean shoptheall(long uid);

    int getCartInfo(long iid);

    Item getItemByIid(String iid);

    boolean addcartbycounts(int i, int i1, long uid, String countss);

    List<Orderinfo> getOrderByuid(long uid);

    Take_delivery_of_goods getTakeofgoods(long uid);

    boolean updateinfo(String address, String tel,long uid);

    boolean deletesCart(long uid);

    boolean addCategory(String cname);

    boolean deletecategory(String cid);

    boolean addItem(Item item);
}
